package org.lee.visitor.app.visitor.impl;

import lombok.extern.slf4j.Slf4j;
import org.lee.visitor.app.user.impl.Student;
import org.lee.visitor.app.user.impl.Teacher;
import org.lee.visitor.app.visitor.Visitor;

/**
 * Principal
 * 校长
 *
 * @author dralee
 * @date 2021-11-24 14:15:00
 **/
@Slf4j
public class Principal implements Visitor {
    @Override
    public void visit(Teacher teacher) {
        log.info("教师信息：{} 班级：{} 升学率：{}", teacher.getName(), teacher.gradeClass(), teacher.entranceRatio());
    }

    @Override
    public void visit(Student student) {
        log.info("学生信息：{} 班级：{}", student.getName(), student.gradeClass());
    }
}
